package config;

import autowired.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.testng.annotations.Test;

public class TestUserControllerAnno {
    @Test
    public void TestUserControllerAnno(){
//        加载配置类
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        Spring6 spring6 = context.getBean(Spring6.class);
        spring6.out();

    }
}
